import re
def parseurl(url):
    pattern='(.*)://(.*)/(.*)'
    match=re.search(pattern,url)
    whole=match.group(0)
    protocol=match.group(1)
    host=match.group(2)
    path=match.group(3)
    print('URL=',whole)
    print('PROTOCOL=',protocol)
    print('HOST=',host)
    print('PATH=',path)
parseurl(input('输入一个网页地址：'))
